﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Customer_Profile.Admin;
using KVB.Common;

namespace Customer_Profile
{
    public partial class top : System.Web.UI.Page
    {
        public string sUserName = "";
        public string sUserID = "";
        protected void Page_Load(object sender, EventArgs e)
        {
            Comm.CheckSession(this.Page, "/login.aspx", "usermodel");
            string userid = "";
            if (Session["usermodel"] != null)
            {
                userid = ((UserInfoEntity)Session["usermodel"]).UserLoginId;
            }
            else
            {
                Log.WriteDefaultLog("top Page_Load", "Session is null");
                return;
            }
            string userno = "";
            if (Session["usermodel"] != null)
            {
                userno = ((UserInfoEntity)Session["usermodel"]).UserId;
            }
            else
            {
                Log.WriteDefaultLog("top Page_Load1", "Session is null");
                return;
            }
            sUserName = userid;
            sUserID = userno;
        }
    }
}